package com.easthome.process.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easthome.common.result.Result;
import com.easthome.model.process.Process;
import com.easthome.vo.process.ApprovalVo;
import com.easthome.vo.process.ProcessFormVo;
import com.easthome.vo.process.ProcessQueryVo;
import com.easthome.vo.process.ProcessVo;

import java.util.Map;

public interface ProcessService extends IService<Process> {
    IPage<ProcessVo> getPageList(Page<ProcessVo> processVoPage, ProcessQueryVo vo);

    Result startup(ProcessFormVo processFormVo);

    IPage<ProcessVo> findPending(Page<Process> pageParam);

    Map<String, Object> show(Long processId);

    void approve(ApprovalVo approvalVo);

    IPage<ProcessVo> findProcessed(Page<Process> pageParam);

    IPage<ProcessVo> findStarted(Page<ProcessVo> pageParam);
}
